#include <iostream>
using namespace std;

inline int toFahrenheit(float c)
{
    return 32 + 9.0 / 5 * c;
}

inline int toCentimeter(float f)
{
    return 5.0 / 9 * (f - 32);
}

int main()
{
    float c, f;
    cout << "请输入华氏温度：";
    cin >> f;
    c = toCentimeter(f);
    cout << "转换为摄氏温度为：" << c << endl;

    cout << "请输入摄氏温度：";
    cin >> c;
    f = toFahrenheit(c);
    cout << "转换为华氏温度为：" << f << endl;
    cout << "学号：3170608043，姓名：石英钰" << endl;
    return 0;
}